package com.gxa.order.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@Data
@Configuration
@Component
@PropertySource(value = "classpath:resources/sys.properties",encoding = "utf-8")
public class UploadConfig {
    //图片上传路径
    @Value("${upload.path}")
    private String path;
    //图片格式
    @Value("${upload.exts}")
    private String exts;

}
